import { Entity, Column } from 'typeorm';
import { BaseEntityNotCompany } from '../common/baseEntityNotCompany';

@Entity({comment: "公司表"})
export class Company extends BaseEntityNotCompany{

    @Column({unique: true, comment: '公司码'})
    companyCode: string;

    @Column({comment: '公司名'})
    companyName: string;

    @Column({nullable: true, comment: '公司logo'})
    companyLogo: string;

    @Column({nullable: true, comment: '电子章'})
    electronicSeal: string;

    @Column({comment: '公司拥有者ID', nullable: true})
    companyOwnerId: number;

    @Column({nullable: true, comment: '公司联系人姓名'})
    companyContactName: string;

    @Column({comment: '公司联系人电话', nullable: true})
    companyContactPhone: string;

    @Column({comment: '状态'})
    state: number;
}